﻿namespace BM.Tools.WebControls.MForm.Design
{
    using System.ComponentModel.Design;

    using BM.Tools.WebControls.MForm.Controls;

    /// <summary>
    /// This is the <see cref="DesignerActionList" /> of the <see cref="OffspringsOwner" /> control.
    /// </summary>
    internal class OffspringsOwnerActionList : OffspringActionList
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OffspringsOwnerActionList"/> class. 
        /// </summary>
        /// <param name="designer">
        /// The designer.
        /// </param>
        /// <param name="offspring">
        /// The offspring.
        /// </param>
        public OffspringsOwnerActionList(OffspringsOwnerDesigner designer, OffspringsOwner offspring)
                : base(designer, offspring)
        {
        }

        /// <summary>
        /// Gets a value indicating whether the control is editable.
        /// </summary>
        protected override bool Editable
        {
            get
            {
                return (Designer as OffspringsOwnerDesigner).Editable;
            }
        }
    }
}